package com.bed.lovewithpatientbed.service;

import com.bed.lovewithpatientbed.common.bean.LayUiPageBean;
import com.bed.lovewithpatientbed.pojo.Address;
import com.bed.lovewithpatientbed.pojo.Hospital;

import java.util.List;

/**
 * @title HospitalService
 * @description 医院Service
 * @author yg
 * @updateTime
 * @throws
 */
public interface HospitalService {

    List<Hospital> getAll();

    List<Hospital> getHospitalBySelect(LayUiPageBean pageBean, Hospital hospital, Double count1, Double count2,Address address);

    Hospital selectById(Integer hid);

    int addHospital(Hospital hospital);

    int delHospital(Hospital hospital);

    int delbatchHospital(Integer[] ids);

    int updateHospital(Hospital hospital);
    /**
     * @description 按照顺序查询所有医院
     * @author tyl
     * @updateTime 2020/10/14 14:27
     */
    List<Hospital> selectByExample(String sequence, String province);

    long countRow();
    /**
     * @description 根据省份查医院的数量
     * @author tyl
     * @updateTime 2020/10/16 14:25
     * @param
     */
     List<Integer> selectByProvinces(List<String> province);

    /**
     * @title getBedPutIds
     * @description 根据医院id获取床位id
     * @author sunningsheng
     * @updateTime
     * @throws
     */
    List<Integer> getBedPutIds(Integer hospitalId);

    /**
         * @title 根据医院对接人id得到医院信息
         * @description
         * @author yg
         * @updateTime
         * @throws
         */
    Hospital selectByManagerId(Integer hospitalManagerId);

}
